Optimal. Leaf size=188 \[ \frac {(2339916063-389975609 x) \sqrt {3-x+2 x^2}}{31850496}+\frac {(762984903+67865260 x) \left (3-x+2 x^2\right )^{3/2}}{95551488 (5+2 x)}-\frac {3667 \left (3-x+2 x^2\right )^{5/2}}{2304 (5+2 x)^4}+\frac {224815 \left (3-x+2 x^2\right )^{5/2}}{165888 (5+2 x)^3}-\frac {14477995 \left (3-x+2 x^2\right )^{5/2}}{23887872 (5+2 x)^2}+\frac {432565 \sinh ^{-1}\left (\frac {1-4 x}{\sqrt {23}}\right )}{1024 \sqrt {2}}-\frac {8969688643 \tanh ^{-1}\left (\frac {17-22 x}{12 \sqrt {2} \sqrt {3-x+2 x^2}}\right )}{21233664 \sqrt {2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.16, antiderivative size = 188, normalized size of antiderivative = 1.00, number of steps
used = 10, number of rules used = 8, integrand size = 40, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {1664, 826,
828, 857, 633, 221, 738, 212} \begin {gather*} -\frac {14477995 \left (2 x^2-x+3\right )^{5/2}}{23887872 (2 x+5)^2}+\frac {224815 \left (2 x^2-x+3\right )^{5/2}}{165888 (2 x+5)^3}-\frac {3667 \left (2 x^2-x+3\right )^{5/2}}{2304 (2 x+5)^4}+\frac {(67865260 x+762984903) \left (2 x^2-x+3\right )^{3/2}}{95551488 (2 x+5)}+\frac {(2339916063-389975609 x) \sqrt {2 x^2-x+3}}{31850496}-\frac {8969688643 \tanh ^{-1}\left (\frac {17-22 x}{12 \sqrt {2} \sqrt {2 x^2-x+3}}\right )}{21233664 \sqrt {2}}+\frac {432565 \sinh ^{-1}\left (\frac {1-4 x}{\sqrt {23}}\right )}{1024 \sqrt {2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 212
Rule 221
Rule 633
Rule 738
Rule 826
Rule 828
Rule 857
Rule 1664
Rubi steps
\begin {align*} \int \frac {\left (3-x+2 x^2\right )^{3/2} \left (2+x+3 x^2-x^3+5 x^4\right )}{(5+2 x)^5} \, dx &=-\frac {3667 \left (3-x+2 x^2\right )^{5/2}}{2304 (5+2 x)^4}-\frac {1}{288} \int \frac {\left (3-x+2 x^2\right )^{3/2} \left (\frac {51695}{16}-\frac {24835 x}{4}+1944 x^2-720 x^3\right )}{(5+2 x)^4} \, dx\\ &=-\frac {3667 \left (3-x+2 x^2\right )^{5/2}}{2304 (5+2 x)^4}+\frac {224815 \left (3-x+2 x^2\right )^{5/2}}{165888 (5+2 x)^3}+\frac {\int \frac {\left (3-x+2 x^2\right )^{3/2} \left (\frac {5995005}{16}-\frac {1483149 x}{2}+77760 x^2\right )}{(5+2 x)^3} \, dx}{62208}\\ &=-\frac {3667 \left (3-x+2 x^2\right )^{5/2}}{2304 (5+2 x)^4}+\frac {224815 \left (3-x+2 x^2\right )^{5/2}}{165888 (5+2 x)^3}-\frac {14477995 \left (3-x+2 x^2\right )^{5/2}}{23887872 (5+2 x)^2}-\frac {\int \frac {\left (\frac {252996909}{16}-\frac {152696835 x}{4}\right ) \left (3-x+2 x^2\right )^{3/2}}{(5+2 x)^2} \, dx}{8957952}\\ &=\frac {(762984903+67865260 x) \left (3-x+2 x^2\right )^{3/2}}{95551488 (5+2 x)}-\frac {3667 \left (3-x+2 x^2\right )^{5/2}}{2304 (5+2 x)^4}+\frac {224815 \left (3-x+2 x^2\right )^{5/2}}{165888 (5+2 x)^3}-\frac {14477995 \left (3-x+2 x^2\right )^{5/2}}{23887872 (5+2 x)^2}+\frac {\int \frac {\left (\frac {10531588167}{8}-3509780481 x\right ) \sqrt {3-x+2 x^2}}{5+2 x} \, dx}{71663616}\\ &=\frac {(2339916063-389975609 x) \sqrt {3-x+2 x^2}}{31850496}+\frac {(762984903+67865260 x) \left (3-x+2 x^2\right )^{3/2}}{95551488 (5+2 x)}-\frac {3667 \left (3-x+2 x^2\right )^{5/2}}{2304 (5+2 x)^4}+\frac {224815 \left (3-x+2 x^2\right )^{5/2}}{165888 (5+2 x)^3}-\frac {14477995 \left (3-x+2 x^2\right )^{5/2}}{23887872 (5+2 x)^2}-\frac {\int \frac {-968737607064+1937448253440 x}{(5+2 x) \sqrt {3-x+2 x^2}} \, dx}{2293235712}\\ &=\frac {(2339916063-389975609 x) \sqrt {3-x+2 x^2}}{31850496}+\frac {(762984903+67865260 x) \left (3-x+2 x^2\right )^{3/2}}{95551488 (5+2 x)}-\frac {3667 \left (3-x+2 x^2\right )^{5/2}}{2304 (5+2 x)^4}+\frac {224815 \left (3-x+2 x^2\right )^{5/2}}{165888 (5+2 x)^3}-\frac {14477995 \left (3-x+2 x^2\right )^{5/2}}{23887872 (5+2 x)^2}-\frac {432565 \int \frac {1}{\sqrt {3-x+2 x^2}} \, dx}{1024}+\frac {8969688643 \int \frac {1}{(5+2 x) \sqrt {3-x+2 x^2}} \, dx}{3538944}\\ &=\frac {(2339916063-389975609 x) \sqrt {3-x+2 x^2}}{31850496}+\frac {(762984903+67865260 x) \left (3-x+2 x^2\right )^{3/2}}{95551488 (5+2 x)}-\frac {3667 \left (3-x+2 x^2\right )^{5/2}}{2304 (5+2 x)^4}+\frac {224815 \left (3-x+2 x^2\right )^{5/2}}{165888 (5+2 x)^3}-\frac {14477995 \left (3-x+2 x^2\right )^{5/2}}{23887872 (5+2 x)^2}-\frac {8969688643 \text {Subst}\left (\int \frac {1}{288-x^2} \, dx,x,\frac {17-22 x}{\sqrt {3-x+2 x^2}}\right )}{1769472}-\frac {432565 \text {Subst}\left (\int \frac {1}{\sqrt {1+\frac {x^2}{23}}} \, dx,x,-1+4 x\right )}{1024 \sqrt {46}}\\ &=\frac {(2339916063-389975609 x) \sqrt {3-x+2 x^2}}{31850496}+\frac {(762984903+67865260 x) \left (3-x+2 x^2\right )^{3/2}}{95551488 (5+2 x)}-\frac {3667 \left (3-x+2 x^2\right )^{5/2}}{2304 (5+2 x)^4}+\frac {224815 \left (3-x+2 x^2\right )^{5/2}}{165888 (5+2 x)^3}-\frac {14477995 \left (3-x+2 x^2\right )^{5/2}}{23887872 (5+2 x)^2}+\frac {432565 \sinh ^{-1}\left (\frac {1-4 x}{\sqrt {23}}\right )}{1024 \sqrt {2}}-\frac {8969688643 \tanh ^{-1}\left (\frac {17-22 x}{12 \sqrt {2} \sqrt {3-x+2 x^2}}\right )}{21233664 \sqrt {2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.83, size = 120, normalized size = 0.64 \begin {gather*} \frac {\frac {12 \sqrt {3-x+2 x^2} \left (86386856771+121473790266 x+60528581892 x^2+11761910072 x^3+468043776 x^4-29270016 x^5+2949120 x^6\right )}{(5+2 x)^4}+8969688643 \sqrt {2} \tanh ^{-1}\left (\frac {1}{6} \left (5+2 x-\sqrt {6-2 x+4 x^2}\right )\right )+4484833920 \sqrt {2} \log \left (1-4 x+2 \sqrt {6-2 x+4 x^2}\right )}{21233664} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.02, size = 204, normalized size = 1.09 \[\frac {224815 \left (2 \left (x +\frac {5}{2}\right )^{2}-11 x -\frac {19}{2}\right )^{\frac {5}{2}}}{1327104 \left (x +\frac {5}{2}\right )^{3}}-\frac {14477995 \left (2 \left (x +\frac {5}{2}\right )^{2}-11 x -\frac {19}{2}\right )^{\frac {5}{2}}}{95551488 \left (x +\frac {5}{2}\right )^{2}}+\frac {593321753 \left (2 \left (x +\frac {5}{2}\right )^{2}-11 x -\frac {19}{2}\right )^{\frac {5}{2}}}{3439853568 \left (x +\frac {5}{2}\right )}-\frac {593321753 \left (4 x -1\right ) \left (2 \left (x +\frac {5}{2}\right )^{2}-11 x -\frac {19}{2}\right )^{\frac {3}{2}}}{6879707136}-\frac {389975609 \left (4 x -1\right ) \sqrt {2 \left (x +\frac {5}{2}\right )^{2}-11 x -\frac {19}{2}}}{127401984}-\frac {3667 \left (2 \left (x +\frac {5}{2}\right )^{2}-11 x -\frac {19}{2}\right )^{\frac {5}{2}}}{36864 \left (x +\frac {5}{2}\right )^{4}}-\frac {8969688643 \sqrt {2}\, \arctanh \left (\frac {\left (\frac {17}{2}-11 x \right ) \sqrt {2}}{12 \sqrt {2 \left (x +\frac {5}{2}\right )^{2}-11 x -\frac {19}{2}}}\right )}{42467328}+\frac {8969688643 \sqrt {2 \left (x +\frac {5}{2}\right )^{2}-11 x -\frac {19}{2}}}{127401984}-\frac {432565 \sqrt {2}\, \arcsinh \left (\frac {4 \sqrt {23}\, \left (x -\frac {1}{4}\right )}{23}\right )}{2048}+\frac {8969688643 \left (2 \left (x +\frac {5}{2}\right )^{2}-11 x -\frac {19}{2}\right )^{\frac {3}{2}}}{6879707136}\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.52, size = 210, normalized size = 1.12 \begin {gather*} \frac {16966315}{47775744} \, {\left (2 \, x^{2} - x + 3\right )}^{\frac {3}{2}} - \frac {3667 \, {\left (2 \, x^{2} - x + 3\right )}^{\frac {5}{2}}}{2304 \, {\left (16 \, x^{4} + 160 \, x^{3} + 600 \, x^{2} + 1000 \, x + 625\right )}} + \frac {224815 \, {\left (2 \, x^{2} - x + 3\right )}^{\frac {5}{2}}}{165888 \, {\left (8 \, x^{3} + 60 \, x^{2} + 150 \, x + 125\right )}} - \frac {14477995 \, {\left (2 \, x^{2} - x + 3\right )}^{\frac {5}{2}}}{23887872 \, {\left (4 \, x^{2} + 20 \, x + 25\right )}} - \frac {389975609}{31850496} \, \sqrt {2 \, x^{2} - x + 3} x - \frac {432565}{2048} \, \sqrt {2} \operatorname {arsinh}\left (\frac {4}{23} \, \sqrt {23} x - \frac {1}{23} \, \sqrt {23}\right ) + \frac {8969688643}{42467328} \, \sqrt {2} \operatorname {arsinh}\left (\frac {22 \, \sqrt {23} x}{23 \, {\left | 2 \, x + 5 \right |}} - \frac {17 \, \sqrt {23}}{23 \, {\left | 2 \, x + 5 \right |}}\right ) + \frac {779972021}{10616832} \, \sqrt {2 \, x^{2} - x + 3} + \frac {593321753 \, {\left (2 \, x^{2} - x + 3\right )}^{\frac {3}{2}}}{95551488 \, {\left (2 \, x + 5\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.43, size = 199, normalized size = 1.06 \begin {gather*} \frac {8969667840 \, \sqrt {2} {\left (16 \, x^{4} + 160 \, x^{3} + 600 \, x^{2} + 1000 \, x + 625\right )} \log \left (4 \, \sqrt {2} \sqrt {2 \, x^{2} - x + 3} {\left (4 \, x - 1\right )} - 32 \, x^{2} + 16 \, x - 25\right ) + 8969688643 \, \sqrt {2} {\left (16 \, x^{4} + 160 \, x^{3} + 600 \, x^{2} + 1000 \, x + 625\right )} \log \left (-\frac {24 \, \sqrt {2} \sqrt {2 \, x^{2} - x + 3} {\left (22 \, x - 17\right )} + 1060 \, x^{2} - 1036 \, x + 1153}{4 \, x^{2} + 20 \, x + 25}\right ) + 48 \, {\left (2949120 \, x^{6} - 29270016 \, x^{5} + 468043776 \, x^{4} + 11761910072 \, x^{3} + 60528581892 \, x^{2} + 121473790266 \, x + 86386856771\right )} \sqrt {2 \, x^{2} - x + 3}}{84934656 \, {\left (16 \, x^{4} + 160 \, x^{3} + 600 \, x^{2} + 1000 \, x + 625\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (2 x^{2} - x + 3\right )^{\frac {3}{2}} \cdot \left (5 x^{4} - x^{3} + 3 x^{2} + x + 2\right )}{\left (2 x + 5\right )^{5}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 503 vs.
\(2 (153) = 306\).
time = 4.19, size = 503, normalized size = 2.68 \begin {gather*} -\frac {1}{42467328} \, \sqrt {2} {\left (8969688643 \, \log \left (12 \, \sqrt {-\frac {11}{2 \, x + 5} + \frac {36}{{\left (2 \, x + 5\right )}^{2}} + 1} + \frac {72}{2 \, x + 5} - 11\right ) \mathrm {sgn}\left (\frac {1}{2 \, x + 5}\right ) + 8969667840 \, \log \left ({\left | \sqrt {-\frac {11}{2 \, x + 5} + \frac {36}{{\left (2 \, x + 5\right )}^{2}} + 1} + \frac {6}{2 \, x + 5} + 1 \right |}\right ) \mathrm {sgn}\left (\frac {1}{2 \, x + 5}\right ) - 8969667840 \, \log \left ({\left | \sqrt {-\frac {11}{2 \, x + 5} + \frac {36}{{\left (2 \, x + 5\right )}^{2}} + 1} + \frac {6}{2 \, x + 5} - 1 \right |}\right ) \mathrm {sgn}\left (\frac {1}{2 \, x + 5}\right ) + 12 \, {\left (\frac {24 \, {\left (\frac {1296 \, {\left (\frac {29336 \, \mathrm {sgn}\left (\frac {1}{2 \, x + 5}\right )}{2 \, x + 5} - 42907 \, \mathrm {sgn}\left (\frac {1}{2 \, x + 5}\right )\right )}}{2 \, x + 5} + 39923563 \, \mathrm {sgn}\left (\frac {1}{2 \, x + 5}\right )\right )}}{2 \, x + 5} - 541312039 \, \mathrm {sgn}\left (\frac {1}{2 \, x + 5}\right )\right )} \sqrt {-\frac {11}{2 \, x + 5} + \frac {36}{{\left (2 \, x + 5\right )}^{2}} + 1} + \frac {13824 \, {\left (806241 \, {\left (\sqrt {-\frac {11}{2 \, x + 5} + \frac {36}{{\left (2 \, x + 5\right )}^{2}} + 1} + \frac {6}{2 \, x + 5}\right )}^{5} \mathrm {sgn}\left (\frac {1}{2 \, x + 5}\right ) - 1152288 \, {\left (\sqrt {-\frac {11}{2 \, x + 5} + \frac {36}{{\left (2 \, x + 5\right )}^{2}} + 1} + \frac {6}{2 \, x + 5}\right )}^{4} \mathrm {sgn}\left (\frac {1}{2 \, x + 5}\right ) - 957352 \, {\left (\sqrt {-\frac {11}{2 \, x + 5} + \frac {36}{{\left (2 \, x + 5\right )}^{2}} + 1} + \frac {6}{2 \, x + 5}\right )}^{3} \mathrm {sgn}\left (\frac {1}{2 \, x + 5}\right ) + 1529280 \, {\left (\sqrt {-\frac {11}{2 \, x + 5} + \frac {36}{{\left (2 \, x + 5\right )}^{2}} + 1} + \frac {6}{2 \, x + 5}\right )}^{2} \mathrm {sgn}\left (\frac {1}{2 \, x + 5}\right ) + 394431 \, {\left (\sqrt {-\frac {11}{2 \, x + 5} + \frac {36}{{\left (2 \, x + 5\right )}^{2}} + 1} + \frac {6}{2 \, x + 5}\right )} \mathrm {sgn}\left (\frac {1}{2 \, x + 5}\right ) - 620352 \, \mathrm {sgn}\left (\frac {1}{2 \, x + 5}\right )\right )}}{{\left ({\left (\sqrt {-\frac {11}{2 \, x + 5} + \frac {36}{{\left (2 \, x + 5\right )}^{2}} + 1} + \frac {6}{2 \, x + 5}\right )}^{2} - 1\right )}^{3}}\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {{\left (2\,x^2-x+3\right )}^{3/2}\,\left (5\,x^4-x^3+3\,x^2+x+2\right )}{{\left (2\,x+5\right )}^5} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________